

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Rules
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _RuleName ="";
public System.String RuleName
{
get { return _RuleName;}
set { _RuleName = value;}
}
System.String _RuleNameEN ="";
public System.String RuleNameEN
{
get { return _RuleNameEN;}
set { _RuleNameEN = value;}
}
System.String _RuleDescriptionEN =null;
public System.String RuleDescriptionEN
{
get { return _RuleDescriptionEN;}
set { _RuleDescriptionEN = value;}
}
System.String _RuleDescriptionAR =null;
public System.String RuleDescriptionAR
{
get { return _RuleDescriptionAR;}
set { _RuleDescriptionAR = value;}
}
public Rules()
{
}
public Rules(System.String __RuleName,System.String __RuleNameEN,System.String __RuleDescriptionEN,System.String __RuleDescriptionAR)
{
_RuleName = __RuleName;
_RuleNameEN = __RuleNameEN;
_RuleDescriptionEN = __RuleDescriptionEN;
_RuleDescriptionAR = __RuleDescriptionAR;
}
public Rules(System.Int64 __ID,System.String __RuleName,System.String __RuleNameEN,System.String __RuleDescriptionEN,System.String __RuleDescriptionAR)
{
_ID = __ID;
_RuleName = __RuleName;
_RuleNameEN = __RuleNameEN;
_RuleDescriptionEN = __RuleDescriptionEN;
_RuleDescriptionAR = __RuleDescriptionAR;
}


             public override bool Equals(object obj)
         {
             if (obj is Rules)
             {
                 Rules newObj = (Rules)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
